<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="stylesheets/element-ui.css">
  <link rel="stylesheet" href="stylesheets/style.css">
  <script src="javascripts/vue.global.js"></script>
  <script src="javascripts/element-ui.js"></script>
  <title>Document</title>
</head>

<body>
  <div id="app">{{ message }}
    <el-button>{{ message }}</el-button>
  </div>
  <script type="module">

    const { createApp } = Vue

    createApp({
      data () {
        return {
          message: 'Hello Vue!'
        }
      },
      methods: {

        decoding (str) {
          const decodedString = str.replace(/&#(\d+);/g, function (match, dec) {
            return String.fromCharCode(dec);
          });
          return JSON.parse(decodedString)
        },
      },
      mounted () {
        console.log('获取的后端的数据u', this.decoding('<%= content %>'))
      }
    }).use(ElementPlus).mount('#app')
  </script>
</body>

</html>